package t4tools.tableo.config;

import java.util.HashMap;
import java.util.Map;

public class TableConfig {

	private Map<String, CellConfig> repeatedCells = new HashMap<String, CellConfig>();

	private Map<String, CellConfig> nonRepeatedCells = new HashMap<String, CellConfig>();

	private Map<String, ArrayCellConfig> arrayCells = new HashMap<String, ArrayCellConfig>();

	public void addCell(String key, boolean repeated) {
		if (repeated) {
			repeatedCells.put(key, new CellConfig(key, repeated));
		} else {
			nonRepeatedCells.put(key, new CellConfig(key, repeated));
		}
	}

	public void addArrayCell(String key) {
		arrayCells.put(key, new ArrayCellConfig(key));
	}

	public Map<String, CellConfig> getRepeatedCells() {
		return repeatedCells;
	}

	public Map<String, CellConfig> getNonRepeatedCells() {
		return nonRepeatedCells;
	}

	public Map<String, ArrayCellConfig> getArrayCells() {
		return arrayCells;
	}

}
